BCM2835-V4L2: Ensure H264 header bytes get a sensible timestamp
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Mon, 13 Feb 2017 11:10:50 +0000 (11:10 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Mar 2017 17:56:00 +0000 (17:56 +0000)
commit357ad587ba8871bce39a28334169342f9896ac1c
tree99863c3d2825b5e38584d12039a5fd7f5c941584
parent3048d85104c6d8f831c78c604389629f37846b20
BCM2835-V4L2: Ensure H264 header bytes get a sensible timestamp

H264 header come off VC with 0 timestamps, which means they get a
strange timestamp when processed with VC/kernel start times,
particularly if used with the inline header option.
Remember the last frame timestamp and use that if set, or otherwise
use the kernel start time.

https://github.com/raspberrypi/linux/issues/1836

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/media/platform/bcm2835/bcm2835-camera.c
drivers/media/platform/bcm2835/bcm2835-camera.h